package com.umeox.watch.httpclient.core.constant;

public enum HttpMethod {
    GET("GET", "application/x-www-form-urlencoded; charset=utf-8", "application/json; charset=utf-8"),
    POST_JSON("POST", "application/json; charset=utf-8", "application/json; charset=utf-8"),
    POST_FILE("POST", "application/octet-stream; charset=utf-8", "application/json; charset=utf-8"),
    PUT_FORM("PUT", "application/x-www-form-urlencoded; charset=utf-8", "application/json; charset=utf-8"),
    PUT_BODY("PUT", "application/octet-stream; charset=utf-8", "application/json; charset=utf-8"),
    PATCH_FORM("PATCH", "application/x-www-form-urlencoded; charset=utf-8", "application/json; charset=utf-8"),
    PATCH_BODY("PATCH", "application/octet-stream; charset=utf-8", "application/json; charset=utf-8"),
    DELETE("DELETE", "application/x-www-form-urlencoded; charset=utf-8", "application/json; charset=utf-8"),
    HEAD("HEAD", "application/x-www-form-urlencoded; charset=utf-8", "application/json; charset=utf-8");

    private String value;
    private String requestContentType;
    private String acceptContentType;

    HttpMethod(String value, String requestContentType, String acceptContentType) {
        this.value = value;
        this.requestContentType = requestContentType;
        this.acceptContentType = acceptContentType;
    }

    public String getValue() {
        return this.value;
    }

    public String getRequestContentType() {
        return this.requestContentType;
    }

    public String getAcceptContentType() {
        return this.acceptContentType;
    }
}
